<B_products>
#ANCRE_PAGINATION

<div class="liste-elements products">
<table class='spip liste'>
<caption><strong class="caption"><:ecatalogue:products_list:></strong></caption>
	<thead>
		<tr class='first_row'>
		<th><a href="#URL_ECRIRE{ecatalogue_products}&order=id_article[&sort_order=(#ENV{sort_order}|=={1}|?{0,1})]">ID</a></th>
        <th><a href="#URL_ECRIRE{ecatalogue_products}&order=statut[&sort_order=(#ENV{sort_order}|=={1}|?{0,1})]"><:ecatalogue:status:></a></th>
		[(#CONFIG{ecatalogue/use_module_product_field_sku}|?{
			<th><a href="[(#URL_ECRIRE{ecatalogue_products})]&order=sku[&sort_order=(#ENV{sort_order}|=={1}|?{0,1})]"><:ecatalogue:sku:></a></th>
		})]
        <th><a href="[(#URL_ECRIRE{ecatalogue_products})]&order=titre[&sort_order=(#ENV{sort_order}|=={1}|?{0,1})]"><:ecatalogue:product_name:></a></th>
		[(#CONFIG{ecatalogue/use_module_product_field_price}|?{
			<th><a href="[(#URL_ECRIRE{ecatalogue_products})]&order=price[&sort_order=(#ENV{sort_order}|=={1}|?{0,1})]"><:ecatalogue:price:></a></th>
		})]
		[(#CONFIG{ecatalogue/use_module_product_field_quantity}|?{
			<th><a href="[(#URL_ECRIRE{ecatalogue_products})]&order=quantity[&sort_order=(#ENV{sort_order}|=={1}|?{0,1})]"><:ecatalogue:quantity:></a></th>                
		})]
		</tr>
	</thead>
	<tbody>
	<BOUCLE_products(ECATALOGUE_PRODUCTS spip_articles){pagination 50}{branche?}{statut?}{sku ?LIKE #ENV{sku}%}{is_separate?}
        {tri #ENV{order, titre}}{inverse #ENV{sort_order, 0}}>
		<tr class="[(#COMPTEUR_BOUCLE|alterner{row_odd,row_even})]">
            <td class='id_article'>#ID_ARTICLE</td>
            <td class='statut'>[(#ID_ARTICLE|puce_changement_statut{#STATUT,#ID_RUBRIQUE,article})]</td>             			
			[(#CONFIG{ecatalogue/use_module_product_field_sku}|?{
				<td class='sku'><a href="[(#URL_ECRIRE{articles, id_article=#ID_ARTICLE})]">#SKU</a></td>
			})]
            <td class='titre'><a href="[(#URL_ECRIRE{articles, id_article=#ID_ARTICLE})]">#TITRE</a></td>
			[(#CONFIG{ecatalogue/use_module_product_field_price}|?{
				<td class='price'>#PRICE</td>
			})]
			[(#CONFIG{ecatalogue/use_module_product_field_quantity}|?{
				<td class='quantity'>#QUANTITY</td>                   
			})]
		</tr>
	</BOUCLE_products>
	</tbody>
</table>
[<p class='pagination'>(#PAGINATION{prive})</p>]
</div>
</B_products>
<div class="liste-elements products"><strong class="caption"><:ecatalogue:no_products:></strong></div>
<//B_products>